package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Category;

import java.util.List;

public interface CategoryService {
    boolean addCategory(Category category);

    //查看分类
    List<Category> getList(Integer type);

    //分页查询分类    下面的<Employee>是因为PageInfo自定义了一个泛型<T>
    PageInfo<Category> page(Integer page, Integer pageSize);

    //删除分类
    boolean deleteCategory(String id);

    //修改分类
    boolean updateCategory(Category category);

    List<Category>  getMobileList();
}
